3.29 \(\int \sec ^2(e+f x) (2-3 \sec ^2(e+f x)) \, dx\)

Optimal. Leaf size=19 \[ -\frac{\tan (e+f x) \sec ^2(e+f x)}{f} \]

[Out]

-((Sec[e + f*x]^2*Tan[e + f*x])/f)

________________________________________________________________________________________

Rubi [A]  time = 0.0233235, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.048, Rules used = {4043} \[ -\frac{\tan (e+f x) \sec ^2(e+f x)}{f} \]

Antiderivative was successfully verified.

[In]

Int[Sec[e + f*x]^2*(2 - 3*Sec[e + f*x]^2),x]

[Out]

-((Sec[e + f*x]^2*Tan[e + f*x])/f)

Rule 4043

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[(A*Cot[e
 + f*x]*(b*Csc[e + f*x])^m)/(f*m), x] /; FreeQ[{b, e, f, A, C, m}, x] && EqQ[C*m + A*(m + 1), 0]

Rubi steps

\begin{align*} \int \sec ^2(e+f x) \left (2-3 \sec ^2(e+f x)\right ) \, dx &=-\frac{\sec ^2(e+f x) \tan (e+f x)}{f}\\ \end{align*}

Mathematica [A]  time = 0.056089, size = 19, normalized size = 1. \[ -\frac{\tan (e+f x) \sec ^2(e+f x)}{f} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[e + f*x]^2*(2 - 3*Sec[e + f*x]^2),x]

[Out]

-((Sec[e + f*x]^2*Tan[e + f*x])/f)

________________________________________________________________________________________

Maple [A]  time = 0.021, size = 34, normalized size = 1.8 \begin{align*}{\frac{1}{f} \left ( 2\,\tan \left ( fx+e \right ) +3\, \left ( -2/3-1/3\, \left ( \sec \left ( fx+e \right ) \right ) ^{2} \right ) \tan \left ( fx+e \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)^2*(2-3*sec(f*x+e)^2),x)

[Out]

1/f*(2*tan(f*x+e)+3*(-2/3-1/3*sec(f*x+e)^2)*tan(f*x+e))

________________________________________________________________________________________

Maxima [A]  time = 0.925501, size = 27, normalized size = 1.42 \begin{align*} -\frac{\tan \left (f x + e\right )^{3} + \tan \left (f x + e\right )}{f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2*(2-3*sec(f*x+e)^2),x, algorithm="maxima")

[Out]

-(tan(f*x + e)^3 + tan(f*x + e))/f

________________________________________________________________________________________

Fricas [A]  time = 0.4483, size = 46, normalized size = 2.42 \begin{align*} -\frac{\sin \left (f x + e\right )}{f \cos \left (f x + e\right )^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2*(2-3*sec(f*x+e)^2),x, algorithm="fricas")

[Out]

-sin(f*x + e)/(f*cos(f*x + e)^3)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} - \int - 2 \sec ^{2}{\left (e + f x \right )}\, dx - \int 3 \sec ^{4}{\left (e + f x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)**2*(2-3*sec(f*x+e)**2),x)

[Out]

-Integral(-2*sec(e + f*x)**2, x) - Integral(3*sec(e + f*x)**4, x)

________________________________________________________________________________________

Giac [A]  time = 1.14055, size = 30, normalized size = 1.58 \begin{align*} -\frac{\tan \left (f x + e\right )^{3} + \tan \left (f x + e\right )}{f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2*(2-3*sec(f*x+e)^2),x, algorithm="giac")

[Out]

-(tan(f*x + e)^3 + tan(f*x + e))/f